home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 516 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.0 KB

  1. Path: mail2news.demon.co.uk!genesis.demon.co.uk
  2. From: Lawrence Kirby <fred@genesis.demon.co.uk>
  3. Newsgroups: comp.lang.c
  4. Subject: Re: mmap question
  5. Date: Sat, 06 Jan 96 14:37:18 GMT
  6. Organization: none
  7. Message-ID: <820939038snz@genesis.demon.co.uk>
  8. References: <4cgm6a$1n2@holodeck.iss.nus.sg>
  9. Reply-To: fred@genesis.demon.co.uk
  10. X-NNTP-Posting-Host: genesis.demon.co.uk
  11. X-Newsreader: Demon Internet Simple News v1.27
  12. X-Mail2News-Path: genesis.demon.co.uk
  13.  
  14. In article <4cgm6a$1n2@holodeck.iss.nus.sg> paulwu@iss.nus.sg "Paul Wu" writes:
  15.  
  16. >  ctr_tbl->trieArray=(UC_TRIE_NODE *)(mmap((caddr_t)0, off_set2, 
  17. >          PROT_READ, MAP_SHARED, *fdesc, (off_t)(off_set1-j))+j);
  18. >
  19. >Should I be more careful about the PROT_READ and MAP_SHARED parameters?
  20.  
  21. Try comp.unix.programmer. mmap is undefined as far as the C language
  22. is concerned i.e. anything could happen.
  23.  
  24. -- 
  25. -----------------------------------------
  26. Lawrence Kirby | fred@genesis.demon.co.uk
  27. Wilts, England | 70734.126@compuserve.com
  28. -----------------------------------------
  29.